package com.mapper;

import com.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface categoryMapper {
      //列表展示分类
      List<Category> findCategory();
      //插入新分类品种
      int addCategory(Category category);
      //根据id查询出category信息
      Category findOneCategory(Integer id);
      //更新分类内容
      int updateCategory(Category category);
}
